using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class EmojiDownloadInfoReq : GeneratedMessageLite<EmojiDownloadInfoReq, EmojiDownloadInfoReq.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<EmojiDownloadInfoReq, EmojiDownloadInfoReq.Builder>
		{
			private bool resultIsReadOnly;
			private EmojiDownloadInfoReq result;
			protected override EmojiDownloadInfoReq.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override EmojiDownloadInfoReq MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override EmojiDownloadInfoReq DefaultInstanceForType
			{
				get
				{
					return EmojiDownloadInfoReq.DefaultInstance;
				}
			}
			public string ID
			{
				get
				{
					return this.result.ID;
				}
				set
				{
					this.SetID(value);
				}
			}
			public int StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public int TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public string MD5
			{
				get
				{
					return this.result.MD5;
				}
				set
				{
					this.SetMD5(value);
				}
			}
			public Builder()
			{
				this.result = EmojiDownloadInfoReq.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(EmojiDownloadInfoReq cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private EmojiDownloadInfoReq PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					EmojiDownloadInfoReq other = this.result;
					this.result = new EmojiDownloadInfoReq();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override EmojiDownloadInfoReq.Builder Clear()
			{
				this.result = EmojiDownloadInfoReq.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override EmojiDownloadInfoReq.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new EmojiDownloadInfoReq.Builder(this.result);
				}
				return new EmojiDownloadInfoReq.Builder().MergeFrom(this.result);
			}
			public override EmojiDownloadInfoReq BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override EmojiDownloadInfoReq.Builder MergeFrom(IMessageLite other)
			{
				if (other is EmojiDownloadInfoReq)
				{
					return this.MergeFrom((EmojiDownloadInfoReq)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override EmojiDownloadInfoReq.Builder MergeFrom(EmojiDownloadInfoReq other)
			{
				return this;
			}
			public override EmojiDownloadInfoReq.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override EmojiDownloadInfoReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(EmojiDownloadInfoReq._emojiDownloadInfoReqFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = EmojiDownloadInfoReq._emojiDownloadInfoReqFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							this.result.hasID = input.ReadString(ref this.result.iD_);
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasStartPos = input.ReadInt32(ref this.result.startPos_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasTotalLen = input.ReadInt32(ref this.result.totalLen_);
							continue;
						}
						if (num3 == 34u)
						{
							this.result.hasMD5 = input.ReadString(ref this.result.mD5_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public EmojiDownloadInfoReq.Builder SetID(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasID = true;
				this.result.iD_ = value;
				return this;
			}
			public EmojiDownloadInfoReq.Builder ClearID()
			{
				this.PrepareBuilder();
				this.result.hasID = false;
				this.result.iD_ = "";
				return this;
			}
			public EmojiDownloadInfoReq.Builder SetStartPos(int value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public EmojiDownloadInfoReq.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0;
				return this;
			}
			public EmojiDownloadInfoReq.Builder SetTotalLen(int value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public EmojiDownloadInfoReq.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0;
				return this;
			}
			public EmojiDownloadInfoReq.Builder SetMD5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMD5 = true;
				this.result.mD5_ = value;
				return this;
			}
			public EmojiDownloadInfoReq.Builder ClearMD5()
			{
				this.PrepareBuilder();
				this.result.hasMD5 = false;
				this.result.mD5_ = "";
				return this;
			}
		}
		public const int IDFieldNumber = 1;
		public const int StartPosFieldNumber = 2;
		public const int TotalLenFieldNumber = 3;
		public const int MD5FieldNumber = 4;
		private static readonly EmojiDownloadInfoReq defaultInstance;
		private static readonly string[] _emojiDownloadInfoReqFieldNames;
		private static readonly uint[] _emojiDownloadInfoReqFieldTags;
		private bool hasID;
		private string iD_ = "";
		private bool hasStartPos;
		private int startPos_;
		private bool hasTotalLen;
		private int totalLen_;
		private bool hasMD5;
		private string mD5_ = "";
		private int memoizedSerializedSize = -1;
		public static EmojiDownloadInfoReq DefaultInstance
		{
			get
			{
				return EmojiDownloadInfoReq.defaultInstance;
			}
		}
		public override EmojiDownloadInfoReq DefaultInstanceForType
		{
			get
			{
				return EmojiDownloadInfoReq.DefaultInstance;
			}
		}
		protected override EmojiDownloadInfoReq ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string ID
		{
			get
			{
				return this.iD_;
			}
		}
		public int StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public int TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public string MD5
		{
			get
			{
				return this.mD5_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasStartPos && this.hasTotalLen;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasID)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.ID);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.StartPos);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.TotalLen);
				}
				if (this.hasMD5)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.MD5);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private EmojiDownloadInfoReq()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] emojiDownloadInfoReqFieldNames = EmojiDownloadInfoReq._emojiDownloadInfoReqFieldNames;
			if (this.hasID)
			{
				output.WriteString(1, emojiDownloadInfoReqFieldNames[0], this.ID);
			}
			if (this.hasStartPos)
			{
				output.WriteInt32(2, emojiDownloadInfoReqFieldNames[2], this.StartPos);
			}
			if (this.hasTotalLen)
			{
				output.WriteInt32(3, emojiDownloadInfoReqFieldNames[3], this.TotalLen);
			}
			if (this.hasMD5)
			{
				output.WriteString(4, emojiDownloadInfoReqFieldNames[1], this.MD5);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasID)
			{
				num ^= this.iD_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasMD5)
			{
				num ^= this.mD5_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			EmojiDownloadInfoReq emojiDownloadInfoReq = value as EmojiDownloadInfoReq;
			return emojiDownloadInfoReq != null && (this.hasID == emojiDownloadInfoReq.hasID && (!this.hasID || this.iD_.Equals(emojiDownloadInfoReq.iD_))) && (this.hasStartPos == emojiDownloadInfoReq.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(emojiDownloadInfoReq.startPos_))) && (this.hasTotalLen == emojiDownloadInfoReq.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(emojiDownloadInfoReq.totalLen_))) && (this.hasMD5 == emojiDownloadInfoReq.hasMD5 && (!this.hasMD5 || this.mD5_.Equals(emojiDownloadInfoReq.mD5_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<EmojiDownloadInfoReq, EmojiDownloadInfoReq.Builder>.PrintField("ID", this.hasID, this.iD_, writer);
			GeneratedMessageLite<EmojiDownloadInfoReq, EmojiDownloadInfoReq.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<EmojiDownloadInfoReq, EmojiDownloadInfoReq.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<EmojiDownloadInfoReq, EmojiDownloadInfoReq.Builder>.PrintField("MD5", this.hasMD5, this.mD5_, writer);
		}
		public static EmojiDownloadInfoReq ParseFrom(byte[] data)
		{
			return EmojiDownloadInfoReq.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private EmojiDownloadInfoReq MakeReadOnly()
		{
			return this;
		}
		public static EmojiDownloadInfoReq.Builder CreateBuilder()
		{
			return new EmojiDownloadInfoReq.Builder();
		}
		public override EmojiDownloadInfoReq.Builder ToBuilder()
		{
			return EmojiDownloadInfoReq.CreateBuilder(this);
		}
		public override EmojiDownloadInfoReq.Builder CreateBuilderForType()
		{
			return new EmojiDownloadInfoReq.Builder();
		}
		public static EmojiDownloadInfoReq.Builder CreateBuilder(EmojiDownloadInfoReq prototype)
		{
			return new EmojiDownloadInfoReq.Builder(prototype);
		}
		static EmojiDownloadInfoReq()
		{
			EmojiDownloadInfoReq.defaultInstance = new EmojiDownloadInfoReq().MakeReadOnly();
			EmojiDownloadInfoReq._emojiDownloadInfoReqFieldNames = new string[]
			{
				"ID",
				"MD5",
				"StartPos",
				"TotalLen"
			};
			EmojiDownloadInfoReq._emojiDownloadInfoReqFieldTags = new uint[]
			{
				10u,
				34u,
				16u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.EmojiDownloadInfoReq.Descriptor, null);
		}
	}
}
